package Game;

import java.awt.*;
import java.util.Date;

public class Light {
    Image img;
    double x,y;
    int width,height;
    boolean onLight;

    public Light(Image img, double x, double y, int width, int height, boolean onLight) {
        this.img = img;
        this.x = x;
        this.y = y;
        this.width = width;
        this.height = height;
        this.onLight = onLight;
    }

    public Light(Image lightImg, int x, int y) {
        this.img = img;
        this.x = x;
        this.y = y;
        this.width = img.getWidth(null);//获取图像的宽度
        this.height = img.getHeight(null);//获取图像的高度
    }


}
